package com.igeek.health.mapper;

import com.igeek.health.entity.CheckgroupCheckitem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.igeek.health.entity.Checkitem;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author fengqq
 * @since 2024-08-26
 */
public interface CheckgroupCheckitemMapper extends BaseMapper<CheckgroupCheckitem> {

    @Select("select * from checkitem where id in (select checkitem_id from checkgroup_checkitem where checkgroup_id=#{checkgroupId})")
    public List<Checkitem> selectCheckitemByCheckgroupId(Integer checkgroupId);

}
